package net.csdn.business.common.domain.request;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author wanghang
 * @version 1.0
 * @date 2022/7/14 21:15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class AuthIdpDto implements Serializable {

    private String tenantId;

    /**
     * 对应 extIdpId
     */
    private String id;
    private String name;

    /**
     * 对应 identifier
     */
    private String type;

    /**
     * 对应 type
     */
    private String providerType;
    private Boolean isSocial = false;
    /**
     * 对应 userIdInIdp
     */
    private String connectionId;


    private String userId;
    private String token;

    public String getExtIdpId() {
        return this.id;
    }

    public String getIdentifier() {
        return this.type;
    }

    public String getUserIdInIdp() {
        return this.connectionId;
    }

}
